package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelsCollection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelsCollectionMapper {
    int insert(TravelsCollection record);

    List<TravelsCollection> selectAll();

    void saveTravelCollectionToUser(@Param("userId") Long userId, @Param("travelId") Long travelId);

    TravelsCollection getTravelCollectionToUser(@Param("userId") Long userId, @Param("travelId") Long travelId);

    void deleteTravelCollectionToUser(@Param("userId") Long userId, @Param("travelId") Long travelId);

    List<TravelsCollection> getAllTravelCollectionsByUser(Long userId);
}